import React from 'react'
import ReactDOM from 'react-dom/client'
import Form, { Field } from './rc-field-form';

const root = ReactDOM.createRoot(document.getElementById('root'))

root.render(
  <Form
    initialValue={{
      username: 'admin',
      password: '123456',
    }}
    onFinish={values => {
      console.log(values);
    }}
  >
    <Field name="username">
      <input placeholder="请输入用户名" />
    </Field>
    <Field name="password">
      <input placeholder="请输入密码" />
    </Field>
    <button>登录</button>
  </Form>
)
